WooCommerce\Facebook\Products D

Total Complexity 174
Dependencies 11
Dependents 13
Total lines 1,150
Lines of code 537
Logical lines of code 306
Comment lines 434
Methods 39
Properties 1

Methods 39

Method Rating Maintainability Complexity Lines of code
get_google_product_category_id_from_highest_category()
B
41 18 56
get_enhanced_catalog_attribute()
A
49 10 30
get_ordered_categories_for_product()
A
50 8 29
set_sync_for_products()
A
53 8 22
get_product_color_attribute()
A
54 8 21
disable_sync_for_products_with_terms()
A
50 7 31
get_meta_value_from_categories_for_product()
S
54 7 22
get_product_pattern_attribute()
S
54 7 21
get_product_size_attribute()
S
54 7 21
is_product_visible()
S
54 7 20
get_product_price()
S
56 7 16
get_product_by_fb_product_id()
S
53 5 26
get_google_product_category_id()
S
58 5 15
get_product_pattern()
S
60 5 12
get_product_color()
S
60 5 12
get_product_size()
S
60 5 12
update_product_size_attribute()
S
62 5 10
update_product_color_attribute()
S
62 5 10
update_product_pattern_attribute()
S
62 5 10
get_product_gender()
S
60 4 12
is_product_ready_for_commerce()
S
71 4 6
get_available_product_attributes()
S
67 3 7
product_has_attribute()
S
64 3 10
get_product_by_fb_retailer_id()
S
63 3 9
is_commerce_enabled_for_product()
S
69 3 6
product_should_be_deleted()
S
76 3 3
get_enhanced_catalog_attributes_from_request()
S
55 1 22
set_product_visibility()
S
63 2 10
published_product_should_be_synced()
S
67 2 8
update_product_enhanced_catalog_attribute()
S
68 2 7
product_should_be_synced()
S
67 2 8
update_product_gender()
S
76 1 4
enable_sync_for_products()
S
79 1 3
update_commerce_enabled_for_product()
S
75 1 4
is_sync_excluded_for_product_terms()
S
79 1 3
is_sync_enabled_for_product()
S
79 1 3
get_distinct_product_attributes()
S
67 1 9
disable_sync_for_products()
S
79 1 3
update_google_product_category_id()
S
76 1 4